#include <iostream>
using namespace std;

//基类：员工类
class Employee {
protected:
    string name;
    int id;
    int grade;
    int money;

public:

    Employee() {

    }

    Employee(const string &name, int id, int grade, int money) : name(name), id(id), grade(grade), money(money) {
        this->name = name;
        this->id = id;
        this->grade = grade;
        this->money = money;
    }

    const string &getName() const {
        return name;
    }

    void setName(const string &name) {
        Employee::name = name;
    }

    int getId() const {
        return id;
    }

    void setId(int id) {
        Employee::id = id;
    }

    int getGrade() const {
        return grade;
    }

    void setGrade(int grade) {
        Employee::grade = grade;
    }

    int getMoney() const {
        return money;
    }

    void setMoney(int money) {
        Employee::money = money;
    }

    void show() {
        cout<<id<<endl;
        cout<<name<<endl;
        cout<<grade<<endl;
        cout<<money<<endl;
    }

};

class Manager : public Employee {
public:
    Manager(const string &name, int id, int grade, int money) : Employee(name, id, grade, money) {
        this->name = name;
        this->id = id;
        this->grade = 4;
        this->money = money;
    }
};

int main() {

}
